package edzest.basic;

import java.util.Scanner;

public class J03_Tax {

	public static void main(String[] args) {
		Scanner sc = null;
		int wed;
		int sal;
		float tax;
		
		System.out.println("미혼이면 1, 기혼이면 2를 넣고 연봉을 입력하세요");
		sc = new Scanner(System.in);
		wed = sc.nextInt();
		sal = sc.nextInt();
		sc.close();
		
		if(wed==1 && sal<3000){
			tax = (float)sal/10;
			System.out.println("세금은 "+tax+"입니다");
		}else if(wed==1 && sal>3000){
			tax = (float)sal/4;
			System.out.println("세금은 "+tax+"입니다");
		}else if(wed==2 && sal<6000){
			tax = (((float)sal/100)*15);
			System.out.println("세금은 "+tax+"입니다");
		}else if(wed==2 && sal>6000){
			tax = (((float)sal/100)*35);
			System.out.println("세금은 "+tax+"입니다");
		}
		
	}

}
